package data;
import org.example.comunicationInputSchema.QueryDocument.Query.Candidates;
import org.example.comunicationInputSchema.QueryDocument.Query.Candidates.Candidate;
import org.example.comunicationInputSchema.QueryDocument.Query.Candidates.Candidate.Cinema;


public class CandidateScore {

	String title;
	String[] cinemas;
	String story;

	int idFilm;
	
	float genrescore;
	
	float titlescore;
	
	float keywordscore;
	
	double score;

	Cinema[] cinema;
	
	
	public double getScore() {
		return score;
	}



	public void setScore(double d) {
		this.score = d;
	}



	public CandidateScore(String title_,Cinema[] cinema_,String story_,int idFilm_){
		title=title_;
		cinema=cinema_;
		story=story_;
		idFilm=idFilm_;
		
		genrescore=0;
		titlescore=0;
		keywordscore=0;
		score=0;
	}


	
	public CandidateScore(){
	}
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public double getGenrescore() {
		return genrescore;
	}

	public void setGenrescore(float genrescore) {
		this.genrescore = genrescore;
	}

	public double getTitlescore() {
		return titlescore;
	}

	public void setTitlescore(float titlescore) {
		this.titlescore = titlescore;
	}

	public double getKeywordscore() {
		return keywordscore;
	}

	public void setKeywordscore(float keywordscore) {
		this.keywordscore = keywordscore;
	}

	
	public boolean equals(Object o){
		
		return ((CandidateScore) o).title.equals(this.title);
	}
	
	public Cinema[] getCinema() {
		return cinema;
	}


	public void setCinema(Cinema[] cinema) {
		this.cinema = cinema;
	}
	
		
	public void printCinema(){
		
		for(Cinema c:this.cinema)
			System.out.print(c.getIdcinema()+" "+c.getStringValue());
		System.out.println();

	}
	
	public int getIdFilm() {
		return idFilm;
	}


	public void setIdFilm(int idFilm) {
		this.idFilm = idFilm;
	}
	
	
}
